/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dava.testmodel;


import java.util.ArrayList;
import java.util.List;


/**
 *
 * @author dava
 */
public class Subject {

    private String name;
    
    private String surname;
    
    private List<Phone> phones = new ArrayList<Phone>();
    
    public void addPhone(Phone phone){
        this.phones.add(phone);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public List<Phone> getPhones() {
        return phones;
    }
    

    
}
